package leetcode.medium.reverseparentheses;

import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

public class SolutionTest {
    private static Solution solution;

    @BeforeClass
    public static void setup() {
        solution = new Solution();
    }

    @AfterClass
    public static void tearUp() {
        solution = null;
    }

    @Test
    public void test1() {
        String s = "(abcd)";
        Assert.assertEquals("dcba", solution.reverseParentheses(s));
    }

    @Test
    public void test2() {
        String s = "(u(love)i)";
        Assert.assertEquals("iloveu", solution.reverseParentheses(s));
    }

    @Test
    public void test3() {
        String s = "(ed(et(oc))el)";
        Assert.assertEquals("leetcode", solution.reverseParentheses(s));
    }
}
